<template>
	<view class="content">
		<u-swiper :list="list1"></u-swiper>
		<view class="">
			<u--text text="任务中心"></u--text>
			</view>
			<u-collapse>
			  <u-collapse-item title="高三语文中级训练"name="Docs guide">
			      <text class="u-collapse-content">涵盖uniapp各个方面，给开发者方向指导和设计理念，让您茅塞顿开，一马平川</text>
			    </u-collapse-item>
			    <u-collapse-item title="高三语文高级训练"name="Variety components">
			      <text class="u-collapse-content">众多组件覆盖开发过程的各个需求，组件功能丰富，多端兼容。让您快速集成，开箱即用</text>
			    </u-collapse-item>
			    <u-collapse-item title="语文初级训练任务"name="Numerous tools">
			      <text class="u-collapse-content">众多的贴心小工具，是您开发过程中召之即来的利器，让您飞镖在手，百步穿杨</text>
			    </u-collapse-item>
			  </u-collapse>
			  <u--text text="固定试卷"></u--text>
			  <u-collapse>
			    <u-collapse-item title="发送到发送到"name="Docs guide">
			        <text class="u-collapse-content">涵盖uniapp各个方面，给开发者方向指导和设计理念，让您茅塞顿开，一马平川</text>
			      </u-collapse-item>
			      <u-collapse-item title="所有题型组卷测试"name="Variety components">
			        <text class="u-collapse-content">众多组件覆盖开发过程的各个需求，组件功能丰富，多端兼容。让您快速集成，开箱即用</text>
			      </u-collapse-item>
			      <u-collapse-item title="高三语文考试复习卷"name="Numerous tools">
			        <text class="u-collapse-content">众多的贴心小工具，是您开发过程中召之即来的利器，让您飞镖在手，百步穿杨</text>
			      </u-collapse-item>
			    </u-collapse>
			  <u-tabbar
			    :value="value6"
			    @change="name => value6 = name"
			    :fixed="true"
			    :placeholder="true"
			    :safeAreaInsetBottom="true"
			  >
			    <u-tabbar-item text="首页" icon="home"></u-tabbar-item>
			    <u-tabbar-item text="试卷" icon="photo"></u-tabbar-item>
			    <u-tabbar-item text="记录" icon="play-right"></u-tabbar-item>
			    <u-tabbar-item text="我的" icon="account"></u-tabbar-item>
			  </u-tabbar>
			</view>	
	</template>
		
<script>
	import http from "../../http.js"
	export default {
		data() {
			return {
				list1: [
					"https: //ts1.tc.mm,bing.net/th/id/OIP-C,AKKFPB2 T1IHMFHK69YUNWAAAA?W=268&h=211&c=8&rs=1&g1t=98&r=880=6&dpr=1.3&pid=3.1&rm=2",
					"https: //cn.bing.com/images/search?g=tupian&id=3D3FAD37C871858F76A64CC407DA8CA47862BBDD&FORM=IACFIR",
				],
				taskList: []
			}
		},
		onLoad() {
			this.getTaskList() 
			},
			methods:{
				getTaskList(){
				http({
					url: "/api/student/dashboard/task",
					method: "post"
				}).then(res => {
					console.log(res);
					if (res.code === 1) {
						this.taskList = res.response
					}
				})
			}

		}
	}
</script>

<style>
	.u-slot-title {
		display: flex;
		justify-content: space-between;
	}
</style>